package ${package.Service};

import ${package.Entity}.${entity};
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ${table.serviceName}{

List<${entity}> listAll${entity}();

<#list table.fields as field>
    <#if field.keyFlag>

        ${entity} list${entity}By${field.propertyName}(@Param("${field.propertyName}") ${field.propertyType} ${field.propertyName});
    </#if>
</#list>
}